home *** CD-ROM | disk | FTP | other *** search
- This file is a documentation of the small 'tests' supplied with
- the integraXXX.lib, updated to version 1.0a (06-02-95)
-
- ------------------------------------------------------------------------------
-
- The Test/ directory contains some examples that demonstrate the utilization
- of the functions supplied in the integration library.
- Here follows a short description.
-
-
- 0TEST.C
-
- Uses: Int_function(), Int_string()
-
- 0test 2 3
- Tests Int_function() on function e^(-x^2) (defined inside the
- programma), integration range between 2 and 3
-
- 0test 2 3 10
- Same as above, requiring only 10 precision digits (default=15)
-
- 0test x^2 2 3 12
- Tests Int_string() on string "x^2", integrating between 2 and 3 with
- 12 precision digits. BEWARE: some shells (as CShell) expand asterisks
- so you will have to make correct use of " ". For example
-
- 0test "x*x" 2 3 12
-
-
-
- 1TEST.C
-
- Uses: Int_eq_points()
-
- It need a single argument, the number 'n' of points (if not specified you
- will be asked), then generates 'n' equidistribuited points between 2 and 5
- using the following functions:
-
- x
- x^4-x^3
- x*sin(x)^2
-
- It calculates the integral with Int_eq_points() and then shows the result
- together with correct evaulation.
-
-
-
- 2TEST.C
-
- Uses: Int_points()
-
- Same as above, but it uses Int_points(). For the first and the third
- function, the points are enquidistribuited (Int_points() is not aware of
- this). For the second, the points are random generated in the range [2,5].
-
-
- BEWARE:
- The use of Int_points() and Int_eq_points() is restricted to functions not
- explicitely known. These programs are supplied only as an example.
- If the function is known, YOU SHOULD use Int_string() and Int_function().
-
-
-
- 3TEST.C
- 4TEST.C
-
- Same as above, but using Int_points_p() and Int_eq_point_p().
-
-
-
-
- PARSE.C
-
- This simple program uses the parser function to evaluate its arguments,
- if run without command line input, it will prompt for it.
- (this is useful to prevent shells from expanding wildcards)
-
- Example:
- parse "2^3*2" result 16
- parse sin(p/4) 0.7071067...
-
-
-
- ------------------------------------------------------------------------------
-